package com.test.designPattern.behaviorType.commandPattern;

/**
 * 韭菜柿炒鸡蛋命令
 *
 * @author wangjie
 * @version V1.0
 * @date 2020/4/8
 */
public class ScrambledEggWithChineseChivesCommand extends Command{

    private Cook cook;

    public ScrambledEggWithChineseChivesCommand(Cook cook) {
        this.cook = cook;
    }

    @Override
    public void excute() {
        cook.scrambledEggWithChineseChives();
    }
}
